/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-4-27 上午11:40 Created by sky
 */
package com.jade.bss.admin.journal;

import javax.persistence.*;

import com.jade.bss.base.journal.OperationJournal;

/**
 * 管理操作业务日志。
 *
 * @author sky
 * @version 1.0 13-4-27 上午11:40
 */
@Entity
@Table (name = "BSS_JOURNAL_ADMIN")
public class AdminJournal
        extends OperationJournal
{
    public static final String NAME = "journal_admin";
    @Id
    @GeneratedValue (generator = "BSS_SEQ_JOURNAL_ADMIN")
    @SequenceGenerator (name = "BSS_SEQ_JOURNAL_ADMIN", sequenceName = "BSS_SEQ_JOURNAL_ADMIN")
    private long id;
    @Column (name = "owner_type", length = 32)
    private String ownerType;
    @Column (name = "owner_id", length = 64)
    private String ownerId;
    /** 管理员名称 */
    @Column (name = "admin_name", length = 64)
    private String adminName;

    public AdminJournal()
    {
        super(NAME);
    }

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getAdminName()
    {
        return adminName;
    }

    public void setAdminName(String adminName)
    {
        this.adminName = adminName;
    }

    public String getOwnerType()
    {
        return ownerType;
    }

    public void setOwnerType(String ownerType)
    {
        this.ownerType = ownerType;
    }

    public String getOwnerId()
    {
        return ownerId;
    }

    public void setOwnerId(String ownerId)
    {
        this.ownerId = ownerId;
    }
}
